package way;

public class recursion {
    public static void main(String[] args) {
        recursion test = new recursion();
        int sum = test.jiecheng(5);
        System.out.println(sum);
    }
    public int jiecheng(int a){
        if(a==1){return 1;}
        return a*jiecheng(a-1);
    }
}

